package com.chen.recruit.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 业务状态
 *
 * @author cgy
 * @date 2022/09/04
 */
@Getter
@AllArgsConstructor
public enum BusinessStatus implements BaseEnum {

    SUCCESS("成功", 0),
    FAIL("失败", 1);

    @JsonValue
    private String label;

    @EnumValue
    private int value;

    @Override
    public String getLabel() {
        return label;
    }

}
